/*
 * @Author: 王雁鹏
 * @Date: 2023-04-27 22:26:09
 * @LastEditTime: 2023-06-06 21:29:46
 * @LastEditors: Please set LastEditors
 * @Description: 
 * @FilePath: \expressf:\web-vue\bs-nodejs-background-code\routes\service.js
 * -------------------------------------
 */
const request = require('request');
var req = require("../utils/router");
let { router, Upload, GetRouter, PostRouter } = req

new PostRouter().send('/change/menu', function (res, data) {
    res.send({ code: 200, data: {} });
})

new PostRouter().send('/change/shop', function (res, data) {
    res.send({ code: 200, data: {} });
})

new PostRouter().send('/change/shop/details', function (res, data) {
    res.send({ code: 200, data: {} });
})

new Upload().send("/upload", function (res, data) {
    console.log(data, "datadatadata")
    res.send({ code: 200, data: data });
})
new Upload().sendList("/uploads", function (res, data) {
    res.send({ code: 200, data: "success" });
})

new Upload().sendList("/uploadField", function (res, data) {
    res.send({ code: 200, data: "success" });
})
module.exports = router